package com.definity.toolkit.ui;

import java.awt.Dimension;
import java.awt.Point;
import java.awt.Toolkit;

public class UIToolkit {

	private static UIToolkit instance;

	private final Dimension screenSize;
	private Dimension appSize;

	private Point appLocation;
	
	private UIToolkit() {
		screenSize = Toolkit.getDefaultToolkit().getScreenSize();
	}
	
	public static synchronized UIToolkit getInstance() {
		if (instance == null)
			instance = new UIToolkit();
		return instance;
	}
	
	public Dimension getScreenSize() {
		return screenSize;
	}

	public Dimension getAppSize() {
		return appSize;
	}

	protected void setAppSize(Dimension appSize) {
		this.appSize = appSize;
	}

	public Point getAppLocation() {
		return appLocation;
	}
	
	protected void setAppLocation(Point appLocation) {
		this.appLocation = appLocation;
	}
	
}
